-- GENERATED SPELL FOR [Warmage Watkins] --


function spell0_27904(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(38526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27904', 541, 1)
end

function spell1_27904(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(17290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27904', 3000, 1)
end

function spell2_27904(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_27904', 0, 1)
end

function Sorts_27904(pUnit, Event)
local choix_sorts_27904 = math.random(0, 2)
if choix_sorts_27904 == 0 then
pUnit:RegisterEvent('spell0_27904', 1, 1)
end
if choix_sorts_27904 == 1 then
pUnit:RegisterEvent('spell1_27904', 1, 1)
end
if choix_sorts_27904 == 2 then
pUnit:RegisterEvent('spell2_27904', 1, 1)
end
end

function mob27904_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27904', math.random(1500, 3000), 1)
end

function mob27904_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27904_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27904_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27904, 1, 'mob27904_Action')
RegisterUnitEvent(27904, 2, 'mob27904_Leave')
RegisterUnitEvent(27904, 3, 'mob27904_Kill')
RegisterUnitEvent(27904, 4, 'mob27904_Die')
